// wait_group 实现有条件的等待
#include <workflow/WFFacilities.h>
#include <iostream>
#include <signal.h>
using std::cout;
using std::cerr;
static WFFacilities::WaitGroup waitGroup(1);
void handler(int signum){
    cout << "done\n";
    waitGroup.done();
}
int main(){
    signal(SIGINT,handler);
    cout << "wait\n"; //尽量使用'\n'不用std::endl
    waitGroup.wait();
    cout << "finish!\n";
}
